﻿using System;
using System.Data;
using CdcSoftware.Pivotal.Engine;
using CdcSoftware.Pivotal.Engine.Client.ClientTasks.Attributes;
using CdcSoftware.Pivotal.Engine.Client.Services.Interfaces;
using CdcSoftware.Pivotal.Engine.UI.DataTypes;
using CdcSoftware.Pivotal.Engine.Types.Database;
using CdcSoftware.Pivotal.Engine.Types.DataTemplates;
using CdcSoftware.Pivotal.Engine.Types.Localization;
using CdcSoftware.Pivotal.Applications.Core.Common;
using System.Collections;
using System.Windows.Media;
using System.Windows.Forms;
using System.Linq;

namespace Pcm.Retail.Client.NotificationHandlers
{
    public partial class GlobalNotificationHandler
    {
        [NotificationEvent("OnMainWindowOpen")]
        public void OnMainWindowOpen()
        {
            try
            {
                Globals.SetCashierStatusStrip(Globals.StatusStripPane.EnvironmentPane);
            }
            catch (Exception exc)
            {
                Globals.HandleException(exc, true);
            }
        }

        //[NotificationEvent("OnFormNextPreviousReCreateUI", Table = "RE_RAE_Transaction")]
        //public bool OnFormNextPreviousReCreateUI_TableName(Id recordId, Table table)
        //{
        //    // Instruct the platform to completely reload/rebind any form based off ALL Tables on click of the OTB Previous/Next Buttons
        //    return true;
        //}

    }
}